package com.autumn.context.test;

import com.autumn.context.annotation.Configuration;
import com.autumn.context.annotation.Init;
import com.autumn.context.annotation.PreDestroy;
import com.autumn.context.annotation.Primary;

/**
 * @author niann
 * @description
 * @date 2023/12/24 2:49
 */
@Configuration
public class Sub01 {

    public static void main(String[] args) {
        Sub01 sub01 = new Sub01();
        Class<? extends Sub01> clazz = sub01.getClass();
        System.out.println(clazz.isAnnotationPresent(Primary.class));
    }

    @Primary
    @Init
    public void init() {

    }

    @PreDestroy
    public void destroy() {

    }
}
